<template>
  <uv-toast ref="uToastRef"></uv-toast>
</template>
<script setup>
import { toastStore, pinia } from "@/stores";
import { ref } from "vue";
const store = toastStore(pinia);
const uToastRef = ref(null);
store.$subscribe((args, state) => {
  console.log(state);
  uToastRef.value?.show(state.data);
});
</script>
